package com.xgimi.open.skill.datamanager.biz.common.exception;

import com.xgimi.open.skill.datamanager.biz.common.Enum.ExceptionErrorCode;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/2/4 18:07
 */
public class ParamException extends BaseException{
    private static final long serialVersionUID = -2549347806379737116L;

    public ParamException(ExceptionErrorCode errorCode) {
        super(errorCode.getCode(), errorCode.getMessage());
    }

    public ParamException(String message) {
        super(ExceptionErrorCode.PARAMS_ERROR.getCode(), message);
    }

    public ParamException(ExceptionErrorCode errorCode, String message) {
        super(errorCode.getCode(), errorCode.getMessage() + "|" + message);
    }
}
